package ${package}.dao;

import ${package}.model.${model};
import java.util.List;
import com.github.pagehelper.PageInfo;

import org.apache.ibatis.annotations.Param;

/**
 * Created by util on ${now?date}.
 */
public interface ${model}Dao {

    int insert${model}(${model} ${model?uncap_first});

    int delete${model}(${model} ${model?uncap_first});
    
    int update${model}(${model} ${model?uncap_first});

    ${model} select${model}ById(@Param("id") Integer id);

    List<${model}> select${model}List(${model} ${model?uncap_first});
    
    PageInfo select${model}Page(@Param("${model?uncap_first}") ${model} ${model?uncap_first}, Integer pageNum, Integer pageSize);
}